package com.coderly.onlinegallerysharingplatform.event;

import lombok.Getter;
import lombok.extern.slf4j.Slf4j;
import org.springframework.context.ApplicationEvent;

@Getter
@Slf4j
public class ViewPictureEvent extends ApplicationEvent {

    /**
     * 图片 ID
     */
    private Long pictureId;

    public ViewPictureEvent(Object source, Long pictureId) {
        super(source);
        this.pictureId = pictureId;
        log.info("浏览图片事件发布，源接口{}，图片ID{}", source, pictureId);
    }
}